package cn.zxl.spring.holiday.job.service;

import cn.zxl.spring.holiday.job.domain.Employee;
import cn.zxl.spring.holiday.job.qo.QueryObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author bofeifei
 * @since 2021-10-01
 */
public interface EmployeeService extends IService<Employee> {

    PageInfo<Employee> query(QueryObject qo);

    void deleteForEmployee(Long id);

    void saveEmpAndRol(Employee employee, Long[] roleIds);

    void updateEmpAndRol(Employee employee, Long[] roleIds);

    Employee findOne(Long id);

    Employee findByUsername(String username);

    void batchInsert(List<Employee> employees);
}
